#ifndef _BLUETOOTH_H_
#define	_BLUETOOTH_H_

#include "config.h"

#if defined(BLUETOOTH_FUNC_ENABLE)
typedef enum
{
    N,
    H,
    L,
}IO_CONT_TYPE;


#ifdef  USE_IIC_CONT_BULE
#define iic_bt_data_out_io()    P0DIR &= ~(1<<3);P0PU |= (1<<3)
#define iic_bt_data_in_io()     P0DIR |= (1<<3);P0PU |= (1<<3)
#define iic_bt_data_r_io()      P03
#define iic_bt_data_io(n)       P03 = n
#define iic_bt_clk_out_io()    P0DIR &= ~(1<<4);P0PU |= (1<<4)
#define iic_bt_clk_io(n)       P04 = n

#define   BLUE_CHIP_ID  	   0x16
#define   BLUE_PP_CMD        0x00000004
#define   BLUE_NEXT_CMD    0x00000008
#define   BLUE_PREV_CMD    0x00000010
#define   BLUE_CALL_REJECT_CMD    0x00000002
#define   BLUE_CALL_CMD    0x00000004

#endif
void  deal_Bluetooth( void );
void Bluetooth_function(void);

#endif

#endif
